//
//  ZHCollectionViewHelper+Size.m
//  ArthurRoom
//
//  Created by 赵宏亚 on 2019/8/16.
//  Copyright © 2019 ArthurRoom. All rights reserved.
//

#import "ZHCollectionViewHelper+Size.h"

@implementation ZHCollectionViewHelper (Size)

#pragma mark  定义每个UICollectionView的大小
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
{
    
    switch (self.cellType) {
        case cellTypeMovie:
            return Helper_MovieCellSize;
            break;
            
        case cellTypeNovel:
            return Helper_NovelCellSize;
            break;
            
        default:
            break;
    }
    
    return  CGSizeMake(100, 100);
}

@end
